{% extends "base.html" %}

{% block title %}
List Events
{% endblock %}

{% block content %}
 <a href='/add'>add</a><p>
 <table border=1>
 {% for event in events %}
  <tr><td><a href=
  {% if event.url %}
   '/events/{{event.url}}'
  {% else %}
   '/show?key={{event.key}}'
  {% endif %}
  >{{event.name}}<td>{{event.rand}}</tr>
 {% endfor %}
{% endblock %}
